//
//  YZMAlertView.h
//  YZMicroStock
//
//  Created by wangminhong on 16/3/21.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YZMSaleTradeModel.h"
#import "YZMStockRealModel.h"
#import "YZMTradeTypeDef.h"

@class YZMAlertView;

@interface YZMAlertView : UIView<UITextFieldDelegate>{
    
    UIView *_containerView;
}

@property (nonatomic, strong, readonly) UILabel *titleLabel;
@property (nonatomic, strong, readonly) UILabel *contentLabel;
@property (nonatomic, strong, readonly) UILabel *footLabel;
@property (nonatomic, strong) UIView *customView;
@property (nonatomic, strong, readonly) UIButton *sureButton;
@property (nonatomic, strong, readonly) UIButton *cancelButton;
@property (nonatomic, strong) void (^cancleHandle)();
@property (nonatomic, strong) BOOL (^confirmHandle)();
@property (nonatomic, strong) UITextField *addmoneyTextfield;
@property (nonatomic, strong) UITextField *deferTextfield;
@property (nonatomic, strong) UILabel *deferLabel;
@property (nonatomic, strong) UILabel *deferTimeLabel;
@property (nonatomic, strong) UIButton *choicebutton;
@property (nonatomic, strong) UILabel *bondLabel;
@property (nonatomic, strong) UILabel *hintLabel;
@property (nonatomic, strong) void (^ruleBlock)();
@property (nonatomic, strong) UIButton *ruleBtn;

- (void)showInView: (UIView *)view;
- (void)dismissWithAnimationFlag:(BOOL)animation;

- (void)show;

+ (YZMAlertView *)alertViewForRecommandWithContent:(NSString *)content;

+ (YZMAlertView *)showPayMakeSureWithBalance:(double)balance andPayMoney:(double)payMoney action:(BOOL(^)())action;

+(YZMAlertView *)alertViewForClearAll;

+(YZMAlertView *)alertwithtitle:(NSString *)title withfirststring:(NSString *)firststring firstvalue:(NSNumber *)firstvalue secondstring:(NSString *)secondstring secondvalue:(NSNumber *)secondvalue thirdstring:(NSString *)thirdstring thirdvalue:(NSNumber *)thirdvalue;

+(YZMAlertView *)alertViewForChangeDeferWithFristValue:(NSNumber *)firstValue withSecondValue:(NSNumber *)secondValue withFouthValue:(NSNumber *)fouthvalue withHoldDay:(NSNumber *)day withHint:(NSString *)hintText;

+(YZMAlertView *)stopalertviewwitharray:(NSArray *)stopArray;

+(YZMAlertView *)addBondsAlertWithTitle:(NSString *)title withFirstString:(NSString *)firstString firstValue:(NSNumber *)firstValue secondString:(NSString *)secondString secondValue:(NSNumber *)secondValue thirdString:(NSString *)thirdString thirdValue:(NSNumber *)thirdValue;

+(YZMAlertView *)sellStopwithTitle:(NSString *)title withFirstString:(NSString *)firstString firstValue:(NSString *)firstValue secondString:(NSString *)secondstring secondValue:(NSNumber *)secondValue thirdString:(NSString *)thirdString thirdValue:(NSNumber *)thirdValue;

+ (YZMAlertView *)sellStopwithTitle:(NSString *)title withFirstString:(NSString *)firstString firstValue:(NSString *)firstValue secondString:(NSString *)secondstring secondValue:(NSNumber *)secondValue thirdString:(NSString *)thirdString thirdValue:(NSNumber *)thirdValue info:(NSString *)info;

+(YZMAlertView *)sellStopwithotherTitle:(NSString *)title withFirstString:(NSString *)firstString firstValue:(NSString *)firstValue secondString:(NSString *)secondstring secondValue:(NSNumber *)secondValue thirdString:(NSString *)thirdString thirdValue:(NSNumber *)thirdValue withdeferValue:(NSNumber *)deferValue;


+ (YZMAlertView *)alertViewForStockSellMakeSureWithStock:(YZMSaleTradeModel *)stock andStockReal:(YZMStockRealModel*)stockReal andClickAction:(void (^)(BOOL selectdFlag))clickAction;


///T+1 买断弹窗
+(YZMAlertView *)sellStopwithTitle:(NSString *)title withFirstString:(NSString *)firstString firstValue:(NSString *)firstValue secondString:(NSString *)secondstring secondValue:(NSNumber *)secondValue thirdString:(NSString *)thirdString thirdValue:(NSNumber *)thirdValue withLossValue:(NSNumber *)lossValue;

+(YZMAlertView *)sellStopwithotherTitle:(NSString *)title withFirstString:(NSString *)firstString firstValue:(NSString *)firstValue secondString:(NSString *)secondstring secondValue:(NSNumber *)secondValue thirdString:(NSString *)thirdString thirdValue:(NSNumber *)thirdValue withdeferValue:(NSNumber *)deferValue withLossValue:(NSNumber *)lossValue;

@end
